<?php

namespace application\Module;

use application\Model\ZxarticletagModel;
use library\Core\Singleton;
use library\Core\Db\CDbCriteria;

class Zxarticletag extends Singleton
{

    public function getTagName($id)
    {
        $criteria = new CDbCriteria();
        $criteria->select(['name']);
        $criteria->addEqCondition('id', $id);
        $criteria->addEqCondition('status', 1);
        $criteria->addEqCondition('is_del', 0);
        $model = new ZxarticletagModel();
        return $model->getOne($criteria);
    }


}
